﻿<Window x:Class="CrazyApp.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Crazy App" Height="350" Width="250">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <StackPanel HorizontalAlignment="Right" VerticalAlignment="Top" Orientation="Horizontal">
            <TextBlock Text="Interval: " VerticalAlignment="Center" />
            <TextBlock Text="{Binding Path=SleepInterval}" VerticalAlignment="Center" />
            <TextBlock Text="ms" VerticalAlignment="Center" />
            <Slider Minimum="10" Maximum="100" Width="100" Margin="5"
                    Value="{Binding Path=SleepInterval}" />
        </StackPanel>
        <StackPanel Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center">
            <Button Content="Start" Padding="10" Click="ButtonStart_Click" HorizontalAlignment="Center" Width="110" />
            <TextBlock Margin="0,10" Text="{Binding Path=Value}" HorizontalAlignment="Center" />
            <Button Content="Read (Disk)" Padding="10" Click="ButtonRead_Click" HorizontalAlignment="Center" Margin="0,0,0,10" Width="110" />
            <Button Content="Write (Disk)" Padding="10" Click="ButtonWrite_Click" HorizontalAlignment="Center" Margin="0,0,0,10" Width="110" />
            <Button Content="Send data (net)" Padding="10" Click="ButtonSendData_Click" HorizontalAlignment="Center" Margin="0,0,0,10" Width="110" />
            <Button Content="Get data (net)" Padding="10" Click="ButtonReceiveData_Click" HorizontalAlignment="Center" Margin="0,0,0,10" Width="110" />
        </StackPanel>
    </Grid>
</Window>
